package com.newear.message;

/**
 * Created by josan_tang on 2016/07/24.
 * 消息类型
 */
public class MessageType {
    /**
     * 消息类型的基数
     */
    private static final int BASE_MSG = 0xff0000;

    /**
     * 请求数据
     */
    public static final int REQUIRE_DATA = BASE_MSG + 1;

    /**
     * 请求数据完成
     */
    public static final int REQUIRE_DATA_FINISHED = BASE_MSG + 2;

    /**
     * 显示对话框
     */
    public static final int SHOW_DIALOG = BASE_MSG + 3;

    /**
     * 关闭对话框
     */
    public static final int CLOSE_DIALOG = BASE_MSG + 4;

    /**
     * 取消请求数据任务
     */
    public static final int REQUIRE_CANCEL = BASE_MSG + 17;

    /**
     * 保存头像成功
     */
    public static final int SAVE_AVATAR_FINISHED = BASE_MSG + 18;
    /**
     * 下拉刷新
     */
    public static final int PULL_REFRESH = BASE_MSG + 19;
    /**
     * 上拉加载更多
     */
    public static final int PUSH_MOREDATA = BASE_MSG + 20;
    /**
     * 在有WebView的Activity中，按了返回键
     */
    public static final int ON_KEY_DOWN = BASE_MSG + 21;
    /**
     * category中筛选
     */
    public static final int CATEGORY_SEARCH = BASE_MSG + 22;
    /**
     * 选中week checkbox
     */
    public static final int CHECK_WEEKBOX = BASE_MSG + 23;

    /**
     * 选中month checkbox
     */
    public static final int CHECK_MONTHBOX = BASE_MSG + 24;

    /**
     * 分享结果
     */
    public static final int SHARE_RESULT = BASE_MSG + 25;
    /**
     * 更新城市
     */
    public static final int UPDATE_CITYINFO = BASE_MSG + 26;
    /**
     * 选择了category
     */
    public static final int SELECT_CATEGORY = BASE_MSG + 27;
    /**
     * Js控制webview上的 titlebar
     */
    public static final int JS_UPDATE_TITLEBAR = BASE_MSG + 28;
    /**
     * Js传递webview上的 分享信息
     */
    public static final int JS_SHARING_INFO = BASE_MSG + 29;
    /**
     * 显示可供选择的应用市场
     */
    public static final int SHOW_SELECT_MARKET = BASE_MSG + 30;
    /**
     * 支付宝支付
     */
    public static final int SDK_PAY_FLAG = BASE_MSG + 33;

    /**
     * 成功获得微信登录code
     */
    public static final int GET_WEIXIN_CODE = BASE_MSG + 34;


}
